package com.ruoyi.project.jxc.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.framework.web.domain.BaseEntity;

import java.util.Date;
import java.util.Objects;

public class JxcPurchase extends BaseEntity {
    private String purOrderId;
    private Double purCount;
    private String purVerify;
    private Long supId;
    private String shenqPerson;
    private String rkPerson;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date rkTime;
    private JxcSup sup;

    @Override
    public String toString() {
        return "JxcPurchase{" +
                "purOrderId='" + purOrderId + '\'' +
                ", purCount=" + purCount +
                ", purVerify='" + purVerify + '\'' +
                ", supId=" + supId +
                ", shenqPerson='" + shenqPerson + '\'' +
                ", rkPerson='" + rkPerson + '\'' +
                ", rkTime=" + rkTime +
                ", sup=" + sup +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        JxcPurchase that = (JxcPurchase) o;
        return Objects.equals(purOrderId, that.purOrderId) && Objects.equals(purCount, that.purCount) && Objects.equals(purVerify, that.purVerify) && Objects.equals(supId, that.supId) && Objects.equals(shenqPerson, that.shenqPerson) && Objects.equals(rkPerson, that.rkPerson) && Objects.equals(rkTime, that.rkTime) && Objects.equals(sup, that.sup);
    }

    @Override
    public int hashCode() {
        return Objects.hash(purOrderId, purCount, purVerify, supId, shenqPerson, rkPerson, rkTime, sup);
    }

    public String getPurOrderId() {
        return purOrderId;
    }

    public void setPurOrderId(String purOrderId) {
        this.purOrderId = purOrderId;
    }

    public Double getPurCount() {
        return purCount;
    }

    public void setPurCount(Double purCount) {
        this.purCount = purCount;
    }

    public String getPurVerify() {
        return purVerify;
    }

    public void setPurVerify(String purVerify) {
        this.purVerify = purVerify;
    }

    public Long getSupId() {
        return supId;
    }

    public void setSupId(Long supId) {
        this.supId = supId;
    }

    public String getShenqPerson() {
        return shenqPerson;
    }

    public void setShenqPerson(String shenqPerson) {
        this.shenqPerson = shenqPerson;
    }

    public String getRkPerson() {
        return rkPerson;
    }

    public void setRkPerson(String rkPerson) {
        this.rkPerson = rkPerson;
    }

    public Date getRkTime() {
        return rkTime;
    }

    public void setRkTime(Date rkTime) {
        this.rkTime = rkTime;
    }

    public JxcSup getSup() {
        return sup;
    }

    public void setSup(JxcSup sup) {
        this.sup = sup;
    }

    public JxcPurchase(String purOrderId, Double purCount, String purVerify, Long supId, String shenqPerson, String rkPerson, Date rkTime, JxcSup sup) {
        this.purOrderId = purOrderId;
        this.purCount = purCount;
        this.purVerify = purVerify;
        this.supId = supId;
        this.shenqPerson = shenqPerson;
        this.rkPerson = rkPerson;
        this.rkTime = rkTime;
        this.sup = sup;
    }

    public JxcPurchase() {
    }
}
